package com.okq.entity;

import com.okq.entity.base.DataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 描述 :订单产品类型表实体类
 * 作者 : zdl
 * 日期 : 2017/6/28 9:48
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "tb_order_product")
public class OrderProduct extends DataEntity implements Serializable {
    private static final long serialVersionUID = -5922501542234347374L;
    /**
     * 订单Id
     */
    @Column(name = "oderId", length = 40)
    private String oderId;
    /**
     * 产品类型 1：农残 2：土肥 3：土壤墒情 4：农业气象站 5：...
     */
    @Column(name = "productType")
    private Integer productType;
    /**
     * 数量
     */
    @Column(name = "number")
    private Integer number;
    /**
     * 产品编号
     */
    @Column(name = "products", length = 500)
    private String products;
    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    public String getOderId() {
        return oderId;
    }

    public void setOderId(String oderId) {
        this.oderId = oderId;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getProducts() {
        return products;
    }

    public void setProducts(String products) {
        this.products = products;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
